Add some test cases for #684, which seems to be fixed by a885834e
parser: Improve error message for method/constant declared in anon UDT
Fix #669: ICE instead of error for Static member vars in anon UDTs