Tricky, I don't see any contradiction between our posts. I specifically wrote you can drive 'Z', but the signal value will be determent by the outside world.
I also explained that 'H' and 'L' are for test benches.
Pauliman, you don't need the x01 function. if the signal is driven 'Z' (from the master) and 'H' (from test bench) the simulator will translate it as '1' there is a table that defines which value "wins" in every conflict. in your case 'H' simulates the pull up resistor.
in any case you wrote x01 as part of your code in the first post, and 'x' is also for simulation and test benches only.