fixed bug, and added support for ones and zeros of constant with type