Fix spost spre type

Fix for problem with spre and spost reported by @cgranade in issue #88