VersionableDatabaseObjects - again

Fixed even more issues with `VersionableDatabaseObject`s. At least for me, everything works fine by now.

Changes:
- `VersionableDatabaseObject::getDatabaseVersionTableIndexName` returns the correct index name.
- Revisions are now created properly.
- `objectTypeID` issue in `VersionCacheBuilder` fixed and missing `[]` added.