Fix any.when() valid/invalid concat(). Closes #332, Closes #336