Force array access to be an integer to fix bug with odd GPIO number access.