doReplacements() added is_callable() verification

Thus, to extend the class, you can call methods replaceRule() dynamically on __call().