add bconstant to Matrix and Linear dicts