Added option to use representation names in represent_as
Added test for represent_as
Typo fix pointed out by @mhvk
Merge pull request #2635 from eteq/2586/represent-as-strs

Let represent_as accept strings