"although "or as close as practicable" is a little ambiguous... "
Sure it is, but that both gives you the right to be there, and sadly gives a judge the excuse to fine you.
Of course with the vehicle in the way, and the potential for dooring, you were in the right, and over to the right "as close as practicable," but then judges et. al. fail to understand doorings or other road hazards that cyclists face.
This is why I have long been a fan of signs that indicate that "cyclist may take the full lane."
Of course I don't know how your fellow Canadians feel about this...