Added sanitise_dim function.
facet_wrap calls sanitise_dim.
Added tests for sanitise_dim.