Fixes permitted_params_spec.

Removes obsolete association.
Fixes alternate_date_spec.

Changes planning_element_type to type.