Make sizeof more generic