Make empty() and byteSize() template function
Move functions from BaseArray to Array for backward compatibility