DOC: document `ldict` and `gdict` in bmat, closes #5058