Converter: convert CALC PVs

Move the CALC and LOC PV parsing into a generic class with static methods.
Add unit tests for parsing different LOC and CALC PV types.