Fixing two known inheritance bugs. One is <document>.<title>.label gets "type" incorrectly. The other is scalar collection not being inherited correctly. Added regression test cases for them.
Added test case for the problem that inheritField not wrapped in serialized json.