Fixed accidental naming convention inconsistency
Added NewReference() function to LuaBase objects.