More work on metadata. Enhanced type, parsing and printing.
May still incomplete work.