Cater for case-insensitive magic methods etc

Fixes #162