[api] Accept prefixes in `.stack()`.