Add: If statement to optimize inherits

The inherits function now conditionally copies over prototype
properties from base objects only when there are more than one
bases being extended.

Signed-off-by: Kevin Conway <kevinjacobconway@gmail.com>