More verbose exceptions. Validation of memFlags in queue.create*.