Added type checking in dj.struct.tabulate. Only numerical scalars are allowed.