explicitly initialize all entityClass fields to avoid related crashes
fix some minor compiler warnings