Fix #10857: GHCi ignores -XMonomorphismRestriction and -XNoExtendedDefaultRules command line flags
In GHCi, instead of just setting unconditionally the extension ExtendedDefaultRules ON and the MonomorphismRestriction OFF, we first check, whether these extensions were not set on the command line.
Note this is a copy of Phab:D5554.