Value lookup separation

Moved the valueLookup functions into their own class, with the function for each type of object being compiled separately.