Add tests for inherited method environment
Add information about fields with reference objects
Simplify NULL/0-length check