Fixed bug where toJSON returned an instance of magicpen instead of a string
4.1.4