Fix bug in boolean stack operations in bitcoin script due to short circuit evaluation and implicit operation ordering