Fixed bug in ArraySourceBlockEncoder