fix numpy and subclass support
fix numpy and subclass support
fix numpy and subclass support