fix: support array classes properly