It is a question of spiritual understanding whether 'in all wisdom' relates to 'dwell' or to 'teaching.' It may be the former: Paul taught in all wisdom (ch. 1.28), and in them the word was so to dwell.
'In psalms,' &c., may be connected with 'singing' rather than with what precedes: but in Eph. 5.19, 'speaking' is connected with 'psalms.'