Added $format_value parameter to the get_fields function

Signed-off-by: Elliot Condon <e@elliotcondon.com>
Fixed bug with restoring revisions where sub field values would not be updated

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