Directly extract NumPy data pointer for dofs_per_column

Getting the pointer as an int is not always safe and can lead to an
OverflowError exception when the address is too large to convert.