A person is guilty of burglary if—
The offences referred to in subsection (1)(a) above are offences of stealing anything in the building or part of a building in question, of inflicting on any person therein any grievous bodily harm ... therein, and of doing unlawful damage to the building or anything therein.
A person guilty of burglary shall on conviction on indictment be liable to imprisonment for a term not exceeding—
References in subsections (1) and (2) above to a building, and the reference in subsection (3) above to a building which is a dwelling, shall apply also to an inhabited vehicle or vessel, and shall apply to any such vehicle or vessel at times when the person having a habitation in it is not there as well as at times when he is.