support for shapes of scalars
added test