I (hopefully) fixed all the issues you raised on Github.
(see https://github.com/inducer/loopy/pull/27)