Solved the intercept and model matrix issue by preventing the use of an intercept and using custom identity contrasts. Starting tests for Linear Models and fixed several bugs that appear under extreme circumstances.