For framework-one/di1#58, add optional flatten = true|false to getBeanInfo() to flatten parent bean info.
Fix framework-one/di1#58 by adding regex argument to getBeanInfo().