Fix getRequiredImports() (and thus the REST interface generator) to handle @property methods.
Avoid "statement unreachable" warning for non-serializable class/struct types and output a pragma warning instead. Fixes #382.