adding support for 'unless' and 'only' arrays