Added support for listening to multiple events through a types array. closes #1231