Fixed isKindOfClass. Fixed attributes for function declarations