Avoid issues with arrays and magic methods.
Add missing getClass() method.
Add Notes namespace