Fixes types_controller_test.

Adds project_ids and custom_field_ids to permitted_params for type, as
well as fixing action for type move.