Change representer to fix https://bitbucket.org/xi/pyyaml/issue/5/pyyaml-handles-numpy-numbers-badly