Minor fixes for REM unit support

Cleans up some minor issues with REM unit support such some recursion when handling when using REM on the root element and missing support in ElementUtilities.cpp