#975400 follow up by bojanz: Give field::sanitize_value more power and fix some issues with get_value.