Adding memory stats/measurement and space optimisations.
Adding specialisation for up two 4 inlined value nodes.