Improved code in F4MatrixProjection and added ScopeExit functionality.
Further refactoring of F4MatrixProjection.
merge