[FLAPI-93] Improved detection of invalid method names and parameter names. While it was previously the case that a parse exception would be thrown for invalid characters, invalid names (such as names which are Java reserved keywords) were allowed to pass through.