use power_by_squaring for complex^integer. fixes #3246