[Parser] Fixed print for custom types