allow any form to contribute case properties

Move case type checking to form. Mostly for the sake of
careplan forms which have a different case type from their
module.