When placing torches on any side of a block, even the top, the torch will reposition itself to the west block. If there is no block to the west, the torch will go on the East blcok, then North, and then South. This only seems to happen with regular torches, not redstone torches, levers, etc.
Duplicate of MC-1611
Fixed in future version.