Added detection of the runtime type in the FormAction constructor in
order to automatically set submitTo if the Class implements Post.