Reverted changes to mergePrototypes

Added method `patch` which allows monkeypatching any method