Move all named constants to cdef

See #39 and #31.