See https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues/607#issuecomment-73162165 and later comments
mwjames has provided a simple reproduction case that passes before https://gerrit.wikimedia.org/r/#/c/149293/ and fails afterwards. I'll put it in gerrit in a minute.