Add error catching for source validation, do not cast hash to string in parse_value method.