pretty printing of nested records

with this little change nested records would be pretty printed too.