if a class has no attributes, don't store anything passed to new

This is done by building a constructor for all classes, even when they
have no attributes.