Enabled use of logicals in restrictions by structs

Using logical in restrictions by structs resulted in an error since Matlab doesn't consider logicals numeric. I changed this so logicals can be used as well.