What I thought was an error in my code, was actually a small bug in PieCrust. It's fixed now.