Move the dynamically-typed Field.get functions from the CLI to the main lib

Signed-off-by: David Scott <dave.scott@eu.citrix.com>