Various fixes

Some of these are relevant to Issue Pioneer-Valley-Open-Science/infragram-js #4