Moved some stuff to validation.h, added validation for render rotations.
Added test case to test field objects.