Fixed errors with new abstract gate object implementation.