add: generic Array.contains