Settings: updated, created and deleted have to be a long not an integer

See #176
I prefere the programmatic getClass() approach. This will also give the expected results for derived classes too.