Updated API to allow for a field key in the get_sub_field_object function

Signed-off-by: Elliot Condon <e@elliotcondon.com>