Enabling a stacking mod for Pyanadom should act as a temporary solution for the problem, if it stacks sand. If it doesn't, adding it to the list of my mod's optional dependencies should do the trick.
If you don't care to do some more advanced coding, you can copy what I did for glass and bobplates, in the data-final-fixes file.