Is it possible to enable render transparency for only certain renderlayers?
You can do this by assigning objects into different layers and setting render setting to transparent in the Scene setup property page.