Get newtypes working correctly (thanks @chrisdone)