improve(engine): OptimisticLockingListener type awareness

Allow OptimisticLockingListener to select Entity types it wants to
handle.

related to #CAM-2805