Marginally compact phase and ordered ground states in a model polymer with side spheres