Work around assign-to-reference bug in Cython >=0.18.