Small integer powers are no longer slow.

This has been fixed in issue #2741.