Typed nested records

Add a test for nested type records on second level (nested in nested
record)