perf: simplify id generation logic
perf: replace [].slice.call with Array.prototype.slice.call
feat: Add logic to allow correct usage of possibly overridden functions.