Some studies in spatially homogeneous and cylindrically symmetric cosmologies in general relativity and scalar-tensor theories