Added asSingleton option to blocks

Utilize the asSingleton option when adding blocks to a factory.