element: Move __expand_splits to cython

__expand_splits is a somewhat intensive method, that represents >1%
of the runtime.

Moving it to cython makes it 5 times faster.

This also requires exporting some 'Variables' symbols as public.
5 files changed