Uncomment start of PatternEvent code
Delete unued PatternEvent constructor
Add code to unpack patterns into pattern event callback
Add index generation code used for array unpacking