abi.encodeParameter should process BigNumbers in the same way for uint256 and uint256[]
ABI coder encodes arrays of BigNumbers incorrectly
const Web3 = require('web3')
const web3 = new Web3()
web3.eth.abi.encodeParameter('uint256', '123') // 0x00...007b
web3.eth.abi.encodeParameter('uint256', web3.utils.toBN('123')) // same as above
web3.eth.abi.encodeParameter('uint256[]', ['123']) // 0x00..007b
web3.eth.abi.encodeParameter('uint256[]', [web3.utils.toBN('123')]) // should be the same as above, gives 0x00..0000 instead
Thanks for catching this @k1rill-fedoseev!