In process of YEntity major reimplementation
Reimplemented YEntity, no weird type errors now; fixed all available tests