qglue accepts numpy arrays

Closes #347