The whole or any part of a building or structure that is kept or occupied as a permanent or temporary residence, and includes

(a) a building within the curtilage of a dwelling-house that is connected to it by a doorway or by a covered and enclosed passage-way, and

(b) a unit that is designed to be mobile and to be used as a permanent or temporary residence and that is being used as such a residence;