Text this: Symmetry-protected topological phases in spinful bosons with a flat band