fix unparsing Rail and type parameters