Minor improvement in compound expand, added support for Pos