Small fixes

Various minor Pythonic / Pythran bugfixes, with the associated test cases.