Modifed the UserDefinedForm getCMSFields to fix the issue #2827 which was happening when creating Literal Fields on UserDefinedForm . I used the same technique as the one use by $member->getCMSFields() and the one i commited for Virtual Pages  i use the beforeUpdateCMSFields method.This allows for easier extension of the getCMSFields in subclasses as well