Improved get_sub_field_object function

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