made byClass() method always return array for consistency, 'elements' now defined as empty array
made byClass() method always return array for consistency, 'elements' now defined as empty array

dperini/nwmatcher,dperini/nwmatcher,dperini/nwmatcher