typed to Matrix44, made invalid-bool logic consistent, optimized validation of transform a little
commenting and smaller refactoring