Court hears arguments in NJ gun law appeal