Adds support for multiple type value on AddSensor.

Target type now needs to be specified as ConfigKey
Tests added for JsonFunctions.getPath