fhdl: support len() on all values
bus/csr/SRAM: fix Module conversion errors