Oh, thank you ribuck, I definitely catched all your ideas. I’m happy that transaction to pool operator is already included in hash data, so cheating is practically impossible in that way. Now I have to solve only situations with false positives.
I think I definitely have enough information to knock up pool software now. Give me a time, I’m working on ;-).